package com.song.module.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.song.common.request.PageRequest;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 菜谱步骤请求对象 ap_cookbook_instruction
 *
 * @author song
 * @date 2024-02-24
 */
@Data
@ApiModel(value = "菜谱步骤对象")
@EqualsAndHashCode(callSuper = true)
public class ApCookbookInstructionRequest extends PageRequest{



    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 食谱ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "食谱ID")
    private Long foodId;

    /**
     * 步骤序号
     */
    @ApiModelProperty(value = "步骤序号")
    private Integer step;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String description;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String url;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;

    /**
     * 修改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 更新人名称
     */
    @ApiModelProperty(value = "更新人名称")
    private String updateByName;
}
